/* 配置参数 */
class Config {
  constructor() {}
}
Config.baseUrl =
  process.env.NODE_ENV === "production" ? "http://www.doutieba.com/" : "api/";
Config.ossUrl = "http://hanhai-zike.oss-cn-hangzhou.aliyuncs.com/";

Config.tableName = "vueTable"; //本地存储表名
Config.interceptor = true; //是否开启未登入拦截
Config.request = {
  // token字段名
  tokenName: "api_token",
  formData: "data"
};
// Config[Config.request.tokenName] = '777777' //token值
Config[Config.request.tokenName] = ""; //token值
Config.response = {
  statusName: "code", //数据状态的字段名称
  statusCode: {
    ok: 200, //数据状态一切正常的状态码
    logout: 403 //登录状态失效的状态码
  },
  msgName: "message", //状态信息的字段名称
  dataName: "data" //数据详情的字段名称
};
Config.logoutUrl = ""; //退出登录网址

export default Config;
/* export const baseURL =
  process.env.NODE_ENV === "production" ? "https://www.zi-ke.com" : "api/";
 */